package com.doubi.model.sys;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * @author MrDoubi
 * @since 2020-03-17
 */
@Data
@TableName("t_refund_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class TRefundInfo extends Model<TRefundInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "oid", type = IdType.UUID)

    private String oid;


    @Override
    protected Serializable pkVal() {
        return this.oid;
    }

    @TableField("order_oid")

    private String orderOid;


    /**
     * 发起时订单状态
     */
    @TableField("order_status")

    private Integer orderStatus;


    @TableField("user_oid")

    private String userOid;


    /**
     * 1.发起 2.同意 3.撤销
     */
    @TableField("status")

    private Integer status;


    /**
     * 退款金额
     */
    @TableField("price")

    private BigDecimal price;


    /**
     * 原因
     */
    @TableField("reason")

    private String reason;


    /**
     * 说明
     */
    @TableField("explain_text")

    private String explainText;


    @TableField("img_url")

    private String imgUrl;


    @TableField("create_time")

    private Date createTime;


    @TableField("update_time")

    private Date updateTime;

    @TableField("is_delete")

    private Integer isDelete;


    @TableField("rejection_reason")

    private String rejectionReason;


}